﻿ var TfileUploadNum = 1; //记录图片选择框个数
    var Tnum = 1; //ajax上传图片时索引
    function TDeleteFileUpload() {
        $("#Txt_Option" + TfileUploadNum).parent().parent().remove();
        TfileUploadNum -= 1;
        $("#OptionNum").val(TfileUploadNum);
    }
    function closewind() { window.tb_remove(); };
    function TAddFileUpload() {
        var idnum = TfileUploadNum + 1;
        var str = "<tr><td class='tdClass'>选项" + idnum + ":</td>";
        str += "<td class='tdClass'><input name='' id='Txt_Option" + TfileUploadNum + "' type='text' runat='server'/>&nbsp;</td></tr>";
        $("#imgTable").append(str);
        TfileUploadNum += 1;
        $("#OptionNum").val(TfileUploadNum);
        //$("#uploadImg"+idnum+"").hide();
    }
    function addrow(stri){
        $("#imgTable").append(str);
    }
function ShowThickBox(b,a) {
        var div = a;
        var title = b;
        imgLoader = new Image(); // preload image
        imgLoader.src = tb_pathToImage;
        window.tb_show(title, "#TB_inline?height=300&width=400&inlineId=" + div, "");
    };